.button-list {
  margin-right: 10px;
  position: relative;
  z-index: 100;
  .button-item {
    background-color: #1d57a6;
    border-radius: 5px;
    height: 30px;
    padding: 0 15px;
    margin-right: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 1px #4387ad;
    &:hover {
      box-shadow: 1px 1px 1px #bfd9e7;
    }
  }
}
.alarm-list {
  width: 100%;
  height: calc(100% - 10px);
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0 10px;
  .alarm-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    height: 100px;
    border: 2px solid #f33;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    &:hover {
      border: 2px solid #f00;
      background-color: rgba(0, 0, 0, 0.3);
    }
    .alarm-image {
      width: calc(50% - 10px);
      height: 100%;
      position: relative;
      .image-title {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 20px;
        background-color: #ff000066;
        color: #fff;
        padding: 3px;
        z-index: 1;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        word-break: break-all;
      }
      .image-img {
        width: 100%;
        height: 100%;
      }
      .image-time {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 20px;
        background-color: #3339;
        color: #fff;
        padding: 3px;
        z-index: 1;
        font-size: 12px;
      }
    }
    .alarm-info {
      width: 50%;
      .info-item {
        height: 25%;
        color: #fff;
        font-size: 14px;
        display: flex;
        align-items: center;
        .alarm-label {
          width: 45px;
        }
        .alarm-span {
          width: calc(100% - 42px);
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          word-break: break-all;
        }
      }
    }
  }
  .row-active {
    animation: color-blink 1s infinite; /* 添加动画，持续2秒，无限循环 */
  }
  @keyframes color-blink {
    0%,
    100% {
      border-color: #f33; /* 开始和结束时的颜色 */
    }
    50% {
      border-color: #ffff66; /* 中间时的颜色 */
    }
  }
}
.no-data {
  line-height: 40px;
  color: #bbb;
  text-align: center;
}

/* 为 WebKit 浏览器自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
